<?php
require_once 'bootstrap.php';
require_once 'Zend/XmlRpc/Server.php';
require_once 'Zend/XmlRpc/Generator/XmlWriter.php';
require_once 'service/CommissionService.php'; 
require_once 'service/HarmonogramService.php'; 
require_once 'service/ResultService.php';
require_once 'service/SubjectService.php';
require_once 'service/OborService.php';
require_once 'service/SubjectStOboryService.php';
 
Zend_XmlRpc_Value::setGenerator(new Zend_XmlRpc_Generator_XmlWriter());

$server = new Zend_XmlRpc_Server();
$server->setClass(new CommissionService(),'commission');
$server->setClass(new HarmonogramService(),'harmonogram');
$server->setClass(new ResultService(),'result');
$server->setClass(new SubjectService(),'subject');
$server->setClass(new OborService(),'obor');
$server->setClass(new SubjectStOboryService(),'subject_st_obory');

echo $server->handle();